package com.peter.drawable2;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        MyDrawable mydrawing = new MyDrawable();
        ImageView image = findViewById(R.id.imageView);
        image.setImageDrawable(mydrawing);
        image.setContentDescription(getResources().getString(R.string.my_image_desc));
    }
}